package com.example.housingRentalSystem.mapper;

import com.example.housingRentalSystem.bean.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author 王硕
 * @version jdk21
 * @className RoleMapper
 * @description
 * @date 2025/3/14 9:28
 */
@Mapper
public interface RoleMapper {

    Role findByName(String name);

    Role findById(Integer id);

    void insert(Role role);

    void insertUserRole(@Param("userId") Integer userId, @Param("roleId") Integer roleId);
}